package 线程.day1.demo3;

public class T implements Runnable{
    int count;

    public T(int count) {
        this.count = count;
    }

    @Override
    public void run() {
        while (count>0){
            try {
                Thread.sleep(1000);
                //TimeUnit.SECONDS.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName()+":"+count--);
        }
    }
}
